using Dew.Math;
using Dew.Stats;
using Dew.Stats.Units;
namespace Dew.Examples;
{
private void Example()
{
Vector vec1 =
new Vector(500,
false);
// first, generate 500 randomly Poiss. distributed
// numbers with parameter lambda=1.17
StatRandom.RandomPoisson(1.17,vec1,-1);
// Now, extract the lambda and its 95%
// confidence interval
double resLambda;
double[] CILambda =
new double[2];
Statistics.PoissonFit(vec1,
out resLambda,
out CILambda,0.05);
}
}